package goko.simple;

import com.baomidou.mybatisplus.annotation.*;
import com.lsl.rdf.BaseDo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * Created by lsl on 2021/7/8.
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@TableName("goods")
@SuperBuilder
public class GoodsDo extends BaseDo {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("name")
    private String name;

    @TableField("num")
    private Integer num;

    @TableField("remark")
    private String remark;

    @TableField("status")
    private Integer status;

    @TableField("type")
    private String type;

    @Version // 开启乐观锁
    @TableField(value = "version")
    private Integer version;
}
